package top.hzy520.order.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import top.hzy520.common.resp.ApiResult;
import top.hzy520.order.entity.ProductSku;

import java.util.List;
import java.util.Set;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 16:05 2018/6/10
 */
@FeignClient(name = "trade-service",fallback = GoodsFallBack.class)
public interface GoodsServiceClient {
    @RequestMapping("/goods/select")
    ApiResult<List<ProductSku>> selectSkuList(@RequestBody Set<Long> longs);
}
